{% extends 'base.html' %}
{% block content%}
<table class="tabl">
<tr><td colspan="2" class="heador"><strong>Поощренные сотрудники</strong></td></tr>
{% for item in object_list %}
    <tr class="{% cycle 'color1' 'color2' %}">
        <td class="two" style="width:20%">
            <strong><a href="{{item.get_absolute_url}}">{{item}}</a></strong><br>
            Т. номер:&nbsp;{{item.tabel_number}}<br>
        </td>
        <td class="one" style="width:80%">
            {% for award in item.awardedemployee_set.all %}
                <strong>{{ forloop.counter }}.{{award.promotion.title}} - {{award.award_date}}г.</strong><br>
            {% empty %}
                <strong>Поощренных нет</strong><br>
            {% endfor %}
        </td>
    </tr>
{% endfor %}
</table>
{% endblock%}